Java: CPM v1.2.1 refactoring and new CPM v2.1.1#494
Java: CPM v1.2.1 refactoring and new CPM v2.1.1#494mathieu1fb wants to merge 18 commits intoOrange-OpenSource:masterfrom
Conversation
…M v2.1.1 Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Including methods to derive perceived object speed and heading from their xSpeed and ySpeed parameters. Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
…2.1.1 RoadSensor, SensorObject and RoadSensorManager and its callback have been updated. A new SensorObjectType has been added as a simplified abstraction of CPM's ObjectClass. Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
…ample Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
…bjectConfidence builders Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Added a factory class for each CPM version, to avoid messy imports in the main example classes. Aligned CAM version selection location with CPM one for example classes. Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
...ot3/mobility/src/main/java/com/orange/iot3mobility/messages/cpm/v121/codec/CpmReader121.java
Show resolved
Hide resolved
...ot3/mobility/src/main/java/com/orange/iot3mobility/messages/cpm/v121/codec/CpmWriter121.java
Show resolved
Hide resolved
...t3/mobility/src/main/java/com/orange/iot3mobility/messages/cpm/v121/model/CpmMessage121.java
Show resolved
Hide resolved
...lity/src/main/java/com/orange/iot3mobility/messages/cpm/v121/validation/CpmValidator121.java
Show resolved
Hide resolved
...ot3/mobility/src/main/java/com/orange/iot3mobility/messages/cpm/v211/codec/CpmReader211.java
Show resolved
Hide resolved
...ot3/mobility/src/main/java/com/orange/iot3mobility/messages/cpm/v211/codec/CpmWriter211.java
Show resolved
Hide resolved
...t3/mobility/src/main/java/com/orange/iot3mobility/messages/cpm/v211/model/CpmMessage211.java
Show resolved
Hide resolved
...lity/src/main/java/com/orange/iot3mobility/messages/cpm/v211/validation/CpmValidator211.java
Show resolved
Hide resolved
There was a problem hiding this comment.
As I'm always a newbie with english, I'm not comfortable with this sentence:
Throws if the version is not 1.2.1.
Maybe add the name of the exception? (Throws CpmException if the version is not 1.2.1.)
There was a problem hiding this comment.
I'm not sure which line you are referring to, but when using a parser for a specific CPM version, we indeed want to throw an error if a different version was provided to the parser.
fredOG-2A1
left a comment
There was a problem hiding this comment.
A few remarks about cosmetics:
I found a lot a //TODO, if you plan to not fill them, maybe remove them?
Maybe give a name to what is thrown in comments?
Another remark:
I read the word 'cam' in this cpm refactoring.
Starting tests.
Thanks for the code review! However I'm pretty sure that you're not looking at the latest commit of the PR, so I doubt that the tests will succeed ;) |
|
Got it. A lot of job must have be done... I'm going to read more recent code. |
fredOG-2A1
left a comment
There was a problem hiding this comment.
OK, right track now.
We can forget all my previous comments.
About to do the tests.
What's new
Close #492
Close #493
What to do
After reviewing code changes:
Iot3MobilityExampleclass in theexamplesmodule, and set appropriate values for the following fields:Iot3MobilityExamplefor a few seconds.CpmVersion.V1_2_1parameter in thesendTestCpm(...)method byCpmVersion.V2_1_1.Iot3MobilityExamplefor a few seconds.Expected results
Note: it is normal if source_uuid, station_id and timestamps differ in your test.